package com.rmt.service.impl;


import com.rmt.mapper.Zynewsmapper;
import com.rmt.pojo.zy_news;
import com.rmt.service.zynewsservice;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author ruoyunzifan
 * @create 2019-12-18 11:33
 */
@Service
public class Zynewsserviceimpl implements zynewsservice {
    @Resource
    private Zynewsmapper zynewsmapper;
    @Override
    public List<zy_news> findbyid(){
        return zynewsmapper.findbyid();
    }
    @Override
    public List<zy_news> findByTitle(String title){
        return zynewsmapper.findByTitle(title);
    }

    @Override
    public void delete(){
        zynewsmapper.delete();
    }

    @Override
    public  void save(zy_news zy_news1){
        zynewsmapper.save(zy_news1);
    }
}
